package com.ybdz.scanner.api;



import com.ybdz.scanner.bean.InputBean;
import com.ybdz.scanner.bean.InputWeightBean;
import com.ybdz.scanner.bean.LoginBean;
import com.ybdz.scanner.bean.QueryBean;
import com.ybdz.scanner.bean.TakeCommitBean;
import com.ybdz.scanner.bean.TakeInventoryBean;
import com.ybdz.scanner.bean.TakeTablesBean;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 网络请求方法
 */

public interface Api {


    @FormUrlEncoded
    @POST(Constant.Token)
    Call<LoginBean> getToken(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(Constant.Input)
    Call<InputBean> getInput(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(Constant.InputWeight)
    Call<InputWeightBean> getInputWeight(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(Constant.query)       //查询
    Call<QueryBean> getQuery(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(Constant.takeTable)       //出库单
    Call<TakeTablesBean> takeTable(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(Constant.inventory)       //出库单品
    Call<TakeInventoryBean> getOut(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(Constant.saveOut)       //确认出库
    Call<TakeCommitBean> saveOut(@FieldMap Map<String, String> params);

}
